{echo:JS::import('dialog?skin=brief');}
{echo:JS::import('dialogtools');}
{echo:JS::import('form');}
<form action="" method="post">
    <div class="tools_bar clearfix">
        <a class="icon-checkbox-checked icon-checkbox-unchecked" href="javascript:;" onclick="tools_select('id[]',this)"
           title="全选" data="true"> 全选 </a>
        <a class="icon-delicious" href="{url:/customer/jjmx_list}"> 全部记录</a>
        <span class="fr"><a href='javascript:;' id="condition" class="icon-search" style=""> 筛选条件</a><input
                id="condition_input" type="hidden" name="condition" value="{$condition}"></span>
    </div>
    <table class="default">
        <tr>
            <!--
            <th>操作</th>
            -->
            <th style="width:7%">用户</th>
            <th style="width:20%">来源</th>
            <th>购物积分</th>
            <th>分红奖</th>
            <th>扩展奖</th>
            <th>助力奖</th>
            <th>奖金分</th>
            <th>注册分</th>
            <th>重消积分</th>
            <th>爱心积分</th>
            <!--<th>奖金详情</th>-->
            <th>时间</th>

        </tr>
        {query:name=jjmx as wd fields=wd.*,us.name as uname join= inner join user as us on wd.user_id eq us.id where=
        $where id=$obj page=1 order=id desc pagesize=20 }
        <tr>
            <!--
            <td style="width:70px" class="btn_min"></td>
            -->
            <td>{$item['uname']}</td>
            <td>{$item['from']}</td>
            <td>
                {if:$item['gwjf']>0}
                <b style="color:red">
                    {$item['gwjf']}
                </b>
                {else:}
                {$item['gwjf']}
                {/if}
            </td>
            <td>
                {if:$item['fhj']>0}
                <b style="color:red">
                    {$item['fhj']}
                </b>
                {else:}
                {$item['fhj']}
                {/if}
            </td>
            <td>
                {if:$item['kzj']>0}
                <b style="color:red">
                    {$item['kzj']}
                </b>
                {else:}
                {$item['kzj']}
                {/if}
            </td>
            <td>

                {if:$item['zlj']>0}
                <b style="color:red">
                    {$item['zlj']}
                </b>
                {else:}
                {$item['zlj']}
                {/if}
            </td>
            <td>
                {if:$item['jjf']>0}
                <b style="color:red">
                    {$item['jjf']}
                </b>
                {else:}
                {$item['jjf']}
                {/if}
            </td>
            <td>
                {if:$item['zcf']>0}
                <b style="color:red">
                    {$item['zcf']}
                </b>
                {else:}
                {$item['zcf']}
                {/if}
            </td>
            <td>
                {if:$item['cxjf']>0}
                <b style="color:red">
                    {$item['cxjf']}
                </b>
                {else:}
                {$item['cxjf']}
                {/if}
            </td>
            <td>
                {if:$item['axjj']>0}
                <b style="color:red">
                    {$item['axjj']}
                </b>
                {else:}
                {$item['axjj']}
                {/if}
            </td>
            <!--<td>{$item['intro']}</td>-->
            <td>{$item['jjtime']}</td>
        </tr>
        {/query}
    </table>
</form>
<div class="page_nav">
    {echo:$obj->pageBar()}
</div>
<script type="text/javascript">
    var form = new Form();
    $("#condition").on("click", function () {
        $("body").Condition({
            input: "#condition_input", okVal: '高级搜索', callback: function (data) {
                tools_submit({action: '{url:/customer/jjmx_list}', method: 'get'});
            }, data: {
                'us.name': {name: '用户名'},
//                'from': {name: '来源'},
                gwjf: {name: '购物积分'},
                fhj: {name: '分红奖'},
                kzj: {name: '扩展将'},
                zlj: {name:'助力奖'},
                jjf: {name: '奖金分'},
                zcf: {name: '注册分'},
                cxjf: {name: '重消积分'},
                jjtime: {name: '时间'}
            }
        });
    });
    function withdrawAction(id) {
        art.dialog.open("{url:/customer/withdraw_view/id/}" + id, {id: 'withdraw-dialog', title: "审批", width: 620});
    }
    function close_dialog() {
        art.dialog({id: "withdraw-dialog"}).close();
        tools_reload();
    }
</script>
